package oop;

public class Car {
        //属性
        private String brand;
        private String color;
        private double price;
        private String carNumber;
        private int maxSpeed;
        private int weight;
        private int length;

    public Car() {
    }

    public Car(String brand, String color, double price, String carNumber, int maxSpeed, int weight, int length) {
        this.brand = brand;
        this.color = color;
        this.price = price;
        this.carNumber = carNumber;
        this.maxSpeed = maxSpeed;
        this.weight = weight;
        this.length = length;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public int getMaxSpeed() {
        return maxSpeed;
    }

    public void setMaxSpeed(int maxSpeed) {
        this.maxSpeed = maxSpeed;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
}
